﻿namespace Com.Core.Helps
{
    public class PasswordHelper
    {
        public static string EncryptPassword(string password, string securityKey)
        {
            password = EncryptHelper.AES.Encrypt(securityKey) + securityKey.Substring(0, 22) +
                       securityKey.Substring(3, 32) + securityKey.Substring(12, 10) + password +
                       securityKey.Substring(23, 6) + securityKey + EncryptHelper.AES.Encrypt(password);
            password = EncryptHelper.AES.Encrypt(password);
            return EncryptHelper.Sha1(password);
        }
    }
}
